#ifndef __UTIL_H__
#define __UTIL_H__

#include <string>

void intToString(int num, std::string &str);

/**
 * returns the path of the file containing the online users
 */
std::string getPathOnlineUsers();


/**
 * returns the path of the requests fifo of the user
 */
std::string getPathRequests(int userID);


/**
 * returns the path of the file containing the shared files of the user
 */
std::string getPathSharedFiles(int userID);


/**
 * returns the path of the file containing the bitmap of the shared files of the user
 */
std::string getPathSharedFilesBitmap(int userID);



/**
 * returns the path for the fifo used to donwnload files
 */
std::string getPathDownload(int ownerID, int clientID, std::string &file);

/**
 * returns the path for the downloaded file.
 */
std::string getPathDownloadedFile(std::string &file);

std::string getSemaphoreKeyFile(int ownerID);

#endif
